package com.example.check_oa.model.mapper;

import com.example.comment_oa.pojos.attendance.Attendance;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.comment_oa.pojos_vo.attendanceVo.DateToOneVo;
import com.example.comment_oa.pojos_vo.attendanceVo.OriginalVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author cjl
* @description 针对表【attendance】的数据库操作Mapper
* @createDate 2022-10-26 00:49:30
* @Entity com.example.check_oa.model.pojo.Attendance
*/
@Mapper
public interface AttendanceMapper extends BaseMapper<Attendance> {
//    当天到月份一号
    List<DateToOneVo> DateToOne(@Param("dayOne")String dayOne,@Param("dayNow")String dayNow);
//    查询一周打卡记录
    List<Attendance> weekAttendance(String userNo);
//    上个月打卡记录
    List<Attendance> lastMonth(String userNo);
    //原始记录
    List<Attendance> allAtten(@Param("originalVo") OriginalVo originalVo);
    //三天漏签记录
    List<Attendance> treeDayNo(@Param("userNo")String userNo);
    //某月漏签
    List<Attendance> attenMiss(@Param("userNo")String userNo,@Param("is")int is,@Param("day")String day);
}




